package com.sunday.common.sharding.sphere.jdbc;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sunday.common.core.gson.GsonUtils;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Description: 商品表
 * @author: zsy
 * @Create: 2022/12/01 18:47:31
 */
@Data
@TableName("sunday_commodity")
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @TableField("name")
    private String name;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }
}
